import axios from 'axios'
import React, { useEffect, useState } from 'react'

export default function ComingSoon() {
    const [list, setList] = useState([])
    useEffect(() => {
        axios.get("/api/data"
        ).then(res => {
            setList(res.data.data)
        })
    }, [])
    return (
        <div style={{ marginTop: '50px' }}>
            <ul>
                {
                    list.map(item => {
                        return <li key={item.id}>
                            <span style={{ color: 'blue' }}>{item.nm}</span>-<span style={{ color: 'gray' }}>{item.showInfo}</span>
                        </li>
                    })
                }
            </ul>
        </div>
    )
}
